const {defineConfig} = require('@vue/cli-service')
const path = require('path')
const resolve = dir => path.join(__dirname, dir)


// const setting = require("./config/setting");
module.exports = defineConfig({
    transpileDependencies: true,
    chainWebpack: config => {
        config.resolve.alias
            .set('@', resolve('src'))
            .set('#', resolve('config'))
            .set('~', resolve('shared'))
    },
    devServer: {
        allowedHosts: 'all',
        port: 8080,
        proxy: {
            "/": {
                target: 'http://127.0.0.1:9085',
                ws: false, // 需要websocket 开启
                pathRewrite: {
                    "^/": "",
                },
            },
        }
    },
})
